package com.retail.xiaocui.server.service;

import java.util.List;

import com.retail.common.core.domain.Result;
import com.retail.xiaocui.common.domain.Warehouse;
import com.retail.xiaocui.common.domain.req.OrderReq;

/**
 * 仓库Service接口
 *
 * @author retail
 * @date 2024-03-07
 */
public interface WarehouseService
{
    /**
     * 查询仓库
     *
     * @param warehouseId 仓库主键
     * @return 仓库
     */
    public Warehouse selectWarehouseByWarehouseId(Integer warehouseId);

    /**
     * 查询仓库列表
     *
     * @param warehouse 仓库
     * @return 仓库集合
     */
    public List<Warehouse> selectWarehouseList(Warehouse warehouse);

    /**
     * 新增仓库
     *
     * @param warehouse 仓库
     * @return 结果
     */
    public int insertWarehouse(Warehouse warehouse);

    /**
     * 修改仓库
     *
     * @param warehouse 仓库
     * @return 结果
     */
    public int updateWarehouse(Warehouse warehouse);

    /**
     * 批量删除仓库
     *
     * @param warehouseIds 需要删除的仓库主键集合
     * @return 结果
     */
    public int deleteWarehouseByWarehouseIds(Integer[] warehouseIds);

    /**
     * 删除仓库信息
     *
     * @param warehouseId 仓库主键
     * @return 结果
     */
    public int deleteWarehouseByWarehouseId(Integer warehouseId);

    Result<List<Warehouse>> warehouseList();



}
